// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
import store from './store/store'
import VueRouter from 'vue-router'
import { GroupTitle, AlertPlugin, Group, Cell, XInput, Selector, PopupPicker, Datetime, XNumber, ChinaAddressData, XAddress, XTextarea, XSwitch, Tab, TabItem, Tabbar, TabbarItem } from 'vux'
Vue.config.productionTip = false
const FastClick = require('fastclick')
FastClick.attach(document.body)
axios.defaults.baseURL = 'http://localhost:10004'
axios.defaults.headers.post['Content-Type'] = 'application/json'
Vue.prototype.$ajax = axios

Vue.use(VueRouter)
Vue.use(GroupTitle)
Vue.use(Group)
Vue.use(Cell)
Vue.use(XInput)
Vue.use(Selector)
Vue.use(PopupPicker)
Vue.use(Datetime)
Vue.use(XNumber)
Vue.use(ChinaAddressData)
Vue.use(XAddress)
Vue.use(XTextarea)
Vue.use(XSwitch)
Vue.use(Tab)
Vue.use(TabItem)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(AlertPlugin)

/* eslint-disable no-new */
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
